#!/usr/bin/env bash

git add *
git commit -m "$1"

case $2 in
"ee")
    git push gitee main
    ;;
"hub")
    git push github main
    ;;
"both")
    git push gitee main
    git push github main
    ;;
*)
    echo "error: 2nd par must be [ee|hub|both]!"
    ;;
esac
